<template>
  <div class="base-count">
    <button @click="count--">-</button>
    <span>{{ count }}</span>
    <button @click="count--">+</button>
  </div>
</template>

<script>
export default {
data(){
  console.log('函数执行了');
  return {
    count:99,
  }
}
}
</script>

<style>             
.base-count{
  margin: 200px;
}
</style>